//
//  SegmentControlCell.m
//  18Birdies
//
//  Created by poleness on 2017/2/28.
//  Copyright © 2017年 Lc. All rights reserved.
//

#import "SegmentControlCell.h"
#import "LcFoundation.h"

@implementation SegmentControlCell

- (void)awakeFromNib {
  [super awakeFromNib];
  self.segmentControl.tintColor = LC_COLOR_BLUE;
}

- (IBAction)segmentControlClicked:(id)sender {
  if (self.clickedHandler != nil) {
    self.clickedHandler((int)self.segmentControl.selectedSegmentIndex);
  }
}

@end
